using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Drawing.Imaging;

namespace DusonFramework.Core.Web.Images.ThumbnailHelper
{
   internal class ImageDefinition
    {
       public static string[] SupperFileTypes = { ".jpe", ".jpeg", ".jpg", ".png", ".bmp", ".gif", };

       public static Hashtable SupperImageFormatHashtable;
        
       static ImageDefinition()
       {
           SupperImageFormatHashtable = new Hashtable();
           SupperImageFormatHashtable[SupperFileTypes[0]] = ImageFormat.Jpeg;
           SupperImageFormatHashtable[SupperFileTypes[1]] = ImageFormat.Jpeg;
           SupperImageFormatHashtable[SupperFileTypes[2]] = ImageFormat.Jpeg;
           SupperImageFormatHashtable[SupperFileTypes[3]] = ImageFormat.Png;
           SupperImageFormatHashtable[SupperFileTypes[4]] = ImageFormat.Bmp;
           SupperImageFormatHashtable[SupperFileTypes[5]] = ImageFormat.Gif;
        }
    }
}
